/**
 * @version v1.0
 * @Description:
 * @Author zhanzhongxin
 * @Date 2021/7/12 14:45
 * @Copyright 博为峰
 */
public class ConsDemo03 {
    public static void main(String[] args) {
        Worker worker = new Worker();

        //匿名对象
        new Worker("张三", 20).worker();
        System.out.println(new Worker("张三", 20).name);
    }
}
